package net.framework.smc.kotlin.demokotlin.po

import org.hibernate.annotations.GenericGenerator
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 *  @authore zyx
 *  @date 2018/7/5 10:01
 */
@Entity
@Table(name = "T_SYS_USER")
class UserPo {

    @Id
    @Column(name = "user_id")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    var userId: String? = null
    @Column(name = "username")
    var userName: String? = null
    @Column(name = "password")
    var password: String? = null
    @Column(name = "phone")
    var phone: String? = null
    @Column(name = "descr")
    var descr : String? = null
    @Column(name = "avatar")
    var avatar : String? = null
    @Column(name="create_time", length = 19)
    var createTime : String? = null
    @Column(name = "update_time", length = 19)
    var updateTim : String? = null
    @Column(name = "del_flag")
    var delFlag : Int? = 0
}

